<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <ui:composition template="/template/DefaultTemplate.xhtml">

        <ui:define name="content">
            
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages  errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <p:panel toggleable="true" id="mrpCreate" header="Create Material Requirement Plans ">
                    <h:panelGrid columns="3">
                        <h:outputLabel value="Year Of MRP" for="year" />
                        <p:inputText   required ="true" requiredMessage="Year is missing" 
                                      id="year" value="#{rawMaterialRequirementWeeklyEntityController.selected.yearOfProduction}" /> 
                        <h:message styleClass="errorMsg" for= "year"/>
                        
                     <h:outputLabel value="Month Of MRP" for="month" />
                        <h:selectOneMenu id="month" value="#{rawMaterialRequirementWeeklyEntityController.selected.monthOfProduction}">
                            <f:selectItems value="#{rawMaterialRequirementWeeklyEntityController.allMrpMonth}"/>
                        </h:selectOneMenu>                    
                        <h:message styleClass="errorMsg" for= "periodType"/>
                        
                    
<!--                <h:outputLabel value="&nbsp;" for="rms" /> 
                <p:pickList value="#{rawMaterialRequirementWeeklyEntityController.rmsPickList}"  
                             var="item"  
                            itemLabel="#{item}"  
                            itemValue="#{item}">
                    <f:facet name="sourceCaption">All Raw Materials List</f:facet>  
                    <f:facet name="targetCaption">Raw Materials Selection </f:facet>
                </p:pickList>-->
                        
                        
                    </h:panelGrid>
                </p:panel>
                
                

                <p:commandButton value="Generate" action="#{rawMaterialRequirementWeeklyEntityController.create}"/>
                <p:commandButton action="#{rawMaterialRequirementWeeklyEntityController.prepareCreate}" value="Reset"  ajax="false"/>       
<!--                <p:commandButton value="Market Trend" update="display" oncomplete="marktetTrendDialog.show()"/>-->
                
<!--                <p:dialog header="Market Trend" widgetVar="marktetTrendDialog" resizable="false"  
                                  width="520" showEffect="explode" hideEffect="explode">  
                    
                    <p:lineChart model="#{expectedYearOnYearGrowthEntityController.marketTrends}" minY="24000" titleX="Year" titleY="Sales"  >  
                    <p:chartSeries label="Market FruitsBar Sales" value="#{trend. fruitsBarQuantity}" />  
                    <p:chartSeries label="Market NutsBar Sales" value="#{trend. nutsBarQuantity}" />  
                    </p:lineChart>  
               
                </p:dialog>-->

            </h:form>
        </ui:define>
    </ui:composition>

</html>
